package com.example.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 挂号帖
 * </p>
 *
 * @author wyx
 * @since 2025-03-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("registration")
@ApiModel(value="Registration对象", description="挂号帖")
public class Registration implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "挂号帖编号")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "挂号科室")
    @TableField("disease_type")
//    private Integer diseaseType;
    private Integer deptId;

    @ApiModelProperty(value = "病情描述")
    @TableField("description")
    private String description;

    @ApiModelProperty(value = "病情描述的图片")
    @TableField("describe_img")
    private String image;

    @ApiModelProperty(value = "挂号时间")
    @TableField("registration_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime regisTime;

    @ApiModelProperty(value = "医生编号")
    @TableField("doctor_id")
    private Integer docId;

    @ApiModelProperty(value = "用户-编号")
    @TableField("user_id")
    private Integer userId;

    @ApiModelProperty(value = "挂号帖-状态-0待接诊-1已接诊-2完成")
    @TableField("status")
    private Integer status;

    @TableField("book_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime bookTime;


}
